package cn.dyn.funchat.netty.server.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "netty")
public class NettyProp {
    /**
     * netty的websocket配置
     */
    private Websocket websocket;
    /**
     * wss ssl证书配置
     */
    private Ssl ssl;

    @Data
    public static class Websocket {

        /**
         * websocket端口号
         */
        private Integer port;
    }

    @Data
    public static class Ssl {

        /**
         * websocket端口号
         */
        private Boolean enable = false;
    }
}
